getFill

abstract fun getFill(block: DesignBlock): DesignBlock

Returns the block containing the fill properties of the given block. For example, a graphic has no fill right after create(DesignBlockType.Graphic), although isFillEnabled returns true.

Return

the block that currently defines the given block's fill, or an invalid block if unset. Check the result with isValid.

Parameters

block

the block whose fill block should be returned.